﻿// -----------------------------------------------------------------------
// <copyright file="LoginModule.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace LoginModule
{
    using Microsoft.Practices.Prism.Modularity;
    using Microsoft.Practices.Prism.MefExtensions.Modularity;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    [ModuleExport( typeof( LoginModule ))]
    public class LoginModule : IModule
    {
        public void Initialize()
        {
            //IRegionManager regionManager = ServiceLocator.Current.GetInstance<IRegionManager>();
            //if ( regionManager.Regions.ContainsRegionWithName( "MainRegion" ) )
            //{
            //    regionManager.RegisterViewWithRegion( "MainRegion", typeof( LoginView ) );
            //}

            // Register other view objects with DI Container (Unity)

            //var container = ServiceLocator.Current.GetInstance<I>();
            //container.RegisterType<Object, LoginView>( "LoginView" );
            //container.RegisterType<Object, ModuleANavigator>( "ModuleANavigator" );
            //container.RegisterType<Object, ModuleAWorkspace>( "ModuleAWorkspace" );
        }
    }
}
